Image pickup apparatus, method for controlling the same, reproduction apparatus and method for controlling the same

ABSTRACT

An image pickup apparatus has a function of temporarily recording image data obtained by a solid-state image pickup element and shooting direction data obtained by a 3-axis geomagnetic sensor, in an RAM. When the photographing of a still image is instructed, the apparatus determines a directional difference of shooting directions based on recorded shooting direction data, deletes image data precedent to image data of which the directional difference becomes a predetermined value or more, and records the resultant image data in a recording medium as moving image data.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to an image pickup apparatus which can be used for obtaining moving image data, a reproduction apparatus, a method for controlling the image pickup apparatus, and a method for controlling the reproduction apparatus.

2. Description of the Related Art

In recent years, an image pickup apparatus is known which stores a moving image of a predetermined time period (for instance, 4 seconds) precedent to depression of a shutter button, when a still image is photographed. Concerning such an image pickup apparatus which records the moving image before the still image is photographed, a technology is disclosed which includes determining a storage format on the basis of the motion amount of the moving image, and suppressing the consumption of a recording medium (for instance, see Japanese Patent Application Laid-Open No. 2006-129426).

However, in the technology described in Japanese Patent Application Laid-Open No. 2006-129426, even when a shooting direction largely changes between the time before the still image is photographed and the time when the still image is photographed, the moving image data is recorded as it is. Because of this, there is a problem that when a photographer reproduces the moving image data, a moving image such as a largely-vibrated picture screen, which a photographer did not intend to photograph, occasionally results in being displayed.

SUMMARY OF THE INVENTION

An aspect of the present invention is to solve all or at least one of the above described problems.

In addition, in view of the above described problems, one aspect of the present invention aims to enable an image pickup apparatus to obtain desired moving image data in a case where a shooting direction largely changes.

In addition, an image pickup apparatus according to one aspect of the present invention: picks up an object; generates moving image data; detects one of a shooting direction and an attitude of the image pickup apparatus; temporarily stores the generated moving image data in a storage unit; reads out the moving image data traced back by a predetermined time period from a time point when still image photographing is instructed, from the storage unit; and records the read-out moving image data in a recording medium, wherein at least a part of the moving image data in a predetermined time period is deleted based on the detected one of the shooting direction and the attitude of the image pickup apparatus, and the resultant moving image data is recorded in the recording medium.

Further features of the present invention will become apparent from the following description of exemplary embodiments with reference to the attached drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the invention and, together with the description, serve to explain the principles of the invention.

FIG. 1 is a block diagram illustrating a configuration example of a digital still camera according to first and second embodiments.

FIG. 2 is a flow chart illustrating one example of a photographing procedure in a digital still camera according to the first embodiment.

FIG. 3 is a flow chart illustrating one example of a photographing procedure in a digital still camera according to the second embodiment.

FIG. 4 is a block diagram illustrating a configuration example of a reproduction apparatus according to a third embodiment.

FIG. 5 is a flow chart illustrating one example of a reproduction procedure by the reproduction apparatus according to the third embodiment.

FIG. 6 is a flow chart illustrating one example of a calculation procedure of a non-reproduction area in a step S502 of FIG. 5.

DESCRIPTION OF THE EMBODIMENTS

Various exemplary embodiments, features, and aspects of the invention will be described in detail below with reference to the drawings.

First Embodiment

A digital still camera will be described below which is one example of an image pickup apparatus of the present embodiment. In the following description, a function for discriminating whether image data recorded in a RAM is image data which a photographer desires or not will be mainly described.

FIG. 1 is a block diagram illustrating a configuration example of the digital still camera 100 according to the present embodiment. In FIG. 1, a CPU 101 is responsible for the whole control of the digital still camera 100. A RAM 102 functions as a main memory of the CPU 101. Furthermore, various programs including a control program for implementing the processing which will be described later are developed from a ROM 103 or the like. In addition, the RAM 102 functions as a region for temporarily recording image data therein. In the ROM 103, the above described programs are recorded.

An image pickup unit 104 generates electric image data from an optical image by using a solid-state image pickup element. A display device 105 performats various displays according to the display control of the CPU 101. An input device 106 is an operation unit that is provided, for instance, with a button such as a shutter button for a still image, which is an instruction unit, and the like, and the CPU 101 performats various operations according to input informatation. A media drive (recording medium mounting unit) 107 mounts a detachable recording medium thereon, and thereby can record data and read out the recorded data. A 3-axis geomagnetic sensor 108 is a unit for expressing a shooting direction of the digital still camera 100 with a three-dimensional vector. A system bus 109 is an address bus, a data bus, and a control bus which connect the above described units to each other.

Incidentally, the above described 3-axis geomagnetic sensor 108 is arranged to detect the shooting direction of the digital still camera 100, but may be arranged to detect the attitude of the camera.

The digital still camera 100 of the present embodiment has a mode of temporarily recording image data obtained from the solid-state image pickup element after a power source is turned on, and shooting direction data obtained by the 3-axis geomagnetic sensor 108, in the RAM 102. In this mode, the image data and the shooting direction data are related to each other to be temporarily recorded in the RAM 102. In addition, when the image data is recorded in this way so that the recorded image data exceeds a fixed amount of capacity, the recorded old data is deleted to record new data on the basis of FIFO (First In First Out).

When the photographing of the still image is instructed, the image data and a part or all of the shooting direction data recorded in the RAM 102 are recorded in the recording medium mounted on the media drive 107 in accordance with a predetermined moving image format, as moving image data. The digital still camera 100 of the present embodiment performs such recording processing of the moving image data within a predetermined recording time range upon single photographing of a still image.

In addition, in the present embodiment, note that a predetermined recording time is defined as a moving image recording time L and is set at 4 seconds as a default value. In the present embodiment, in such a mode, a method for recording the moving image data provided by removing the image data which a photographer does not desire will be described below.

FIG. 2 is a flow chart illustrating one example of a photographing procedure in the digital still camera 100 of the present embodiment. The processing illustrated in FIG. 2 is performed by the CPU 101 which executes the control program that is developed from the ROM 103 to the RAM 102. In addition, in the following description, note that the digital still camera 100 operates in a mode of temporarily recording image data obtained by the solid-state image pickup element after the power source is turned on, and the shooting direction data obtained by the 3-axis geomagnetic sensor 108, in the RAM 102.

Firstly, in a step S201, the CPU 101 receives an instruction to photograph a still image from the input device 106, and starts the processing of photographing the still image. Then, in a step S202, the CPU 101 obtains information on a shooting direction A of the digital still camera 100 at the time when the still image is photographed, from the shooting direction data that is recorded in the RAM 102. Subsequently, in a step S203, the CPU 101 assigns 1 to a counter i. The counter i is a counter which is used for discriminating whether the image data recorded in the RAM 102 is image data which the photographer desires or not, while tracing back the recorded image data starting from the image data at a time of still image photographing.

Next, in a step S204, the CPU 101 obtains information on a shooting direction B of the time traced back from the time when the photographing of the still image is started by a time period t given by multiplying the counter i by the width of a step x, from the shooting direction data recorded in the RAM 102. Incidentally, note that 0.5 seconds are set as a default value of the width of the step x.

Next, in a step S205, a directional difference between the shooting direction A and the shooting direction B is calculated, and it is discriminated whether the calculateddirectional difference exceeds a predetermined value (threshold value T) or not. Specifically, the directional difference diff is calculated by obtaining a degree of similarity of cosine between a vector V_(A) which shows the shooting direction A and a vector V_(B) which shows the shooting direction B, with reference to the time when the still image is photographed, according to the following expression (1). Incidentally, 0.2 is used as a default value of the threshold value T.

diff=V _(A) ·V _(B) /||V _(A) ||*||V _(B)||  (1)

Here, V_(A)*V_(B) represents an inner product of the vectors V_(A) and V_(B), and ||V_(A)|| and ||V_(B)|| represent magnitudes (norm) of the vectors V_(A) and V_(B), respectively. When the directional difference diff exceeds the threshold value T as a result of the discrimination in the step S205, the step advances to a step S208, and when the directional difference diff does not exceed the threshold value T as the result, the step advances to a step S206.

In the step S206, 1 is added to the counter i. Then, in a step S207, it is discriminated whether the time period t given by multiplying the counter i by the width of the step x is equal to or greater than a moving image recording time L. When the time period t is equal to or greater than the moving image recording time L as a result of this discrimination, the step advances to the step S208, and when the time period t is not equal to or greater than the moving image recording time L as the result, the step returns to the step S204.

In the step S208, the image data that is photographed by the time traced back from the time when the still image is photographed by the time period t, among the image data recorded in the RAM 102, is recorded in the recording medium mounted on the media drive 107, as moving image data. At this time, when the moving image data is already recorded in the recording medium by the still image photographing, the moving image data is recorded so as to be combined with the moving image data.

As is described above, according to the present embodiment, the digital still camera is configured to discriminate whether the image data is image data which the photographer does not desire or not, by using the directional difference between the shooting directions. Thereby, the digital still camera may record data from which the image data of which the shooting direction largely changes is removed, according to a predetermined moving image format, and may prevent an image which the photographer does not desire from being recorded. Incidentally, in the present embodiment, an example is described in which 0.5 seconds are set as a set value of the width of the step x, 0.2 seconds are set as a set value of the threshold value T, and 4 seconds are set as a set value of the moving image recording time L. These set values can be changed by an input operation from the input device 106.

Alternatively, a half-depressing flag may be related to shooting direction data and be recorded in a case where the shutter button of the digital still camera 100 is in a half-depression state, when the shooting direction data is recorded in the RAM 102. In many cases, the photographer operates the camera to detect a focus (focus) in such a way of half-depressing the shutter button, and accordingly the image data recorded in the RAM 102 in a state in which the shutter button is in the half-depression state can be considered as image data that the photographer desires. Then, the digital still camera may be configured so as to determine that the shooting direction is an appropriate shooting direction, in the step S205, and advance from the step S205 to the step S206, in a case where the half-depressing flag is related to the shooting direction data when acquiring the informatation on the shooting direction in the step S202 or S204.

On the other hand, in a case where the shooting direction which is obtained in the step S202 or S204 is directed downward, the CPU 101 may determine that the shooting direction is an inappropriate direction, in the step S205, and may advance from the step S205 to the step S208. Thereby, when the photographer directs the main body downward in order to change the setting of the digital still camera, for instance, the digital still camera can avoid recording image data which the photographer does not intend to photograph, in the recording medium, when the still image is photographed. Thus, the photographer can set the processings of relating the half-depressed flag to the shooting direction and discriminating whether the shooting direction is a downward direction or not, by an input operation from the input device 106.

In addition, it may be set whether the processing of removing the image data according to the present embodiment is performed or not, by the input operation from the input device 106. The CPU 101 skips the processings from the step S202 to the step S207, in a case where the processing of removing the image data is set so as not to be performed. Thus, the image data of a predetermined time period precedent to the still image photographing is recorded in the recording medium mounted on the media drive 107 according to a predetermined moving image format. Thereby, when the still image is photographed, the image data which is stored before the still image is photographed can always be recorded.

Furthermore, when the directional difference exceeds the threshold value T as a result of the discrimination in the step S205, only the image data corresponding to such directional difference may be removed, and the remaining moving image data may be recorded in the recording medium according to a predetermined moving image format, in the step S208. By doing so, the photographer can obtain moving image data in which only image data photographed in an inappropriate direction is removed. In this case, the camera is arranged such that it can be set whether the above described processing is used or not, by the input operation from the input device 106.

In addition, in a mode of recording the image data and the shooting direction data in the RAM 102 before the still image is photographed, a shooting direction change flag may be recorded in addition to the above described shooting direction data. The shooting direction change flag is set when the directional difference is larger than the threshold value T, in the same method as that in the step S205. In this case, for instance, a directional difference is obtained by comparing the shooting direction data of the latest image data with that of the image data traced back by a predetermined time period. Thus, it can be discriminated whether the image data precedent to the still image photographing is recorded in the recording medium or not when the still image is photographed, by obtaining the shooting direction change flag in any one of the steps S202, S204 and 205. As a result of this, the load of the processing when the still image is photographed can be reduced, and it can be discriminated whether the image data is recorded or not, at a higher speed.

Alternatively, when the shooting direction is changed over the predetermined threshold value at a moment at which the still image is photographed in the step S201, the processings in the steps S202 to S207 are skipped, and the moving image data precedent to the still image photographing may be recorded in the recording medium, according to the predetermined moving image format. Thereby, the photographer can obtain the image data precedent to the still image photographing, even when photographing the still image of an object which is moving largely. In this case, the camera is arranged such that it can be set whether the above described processing is used or not, by the input operation from the input device 106.

Note that the moving image data is recorded as a moving image file separated from a still image. In addition, it will be inconvenient that a new moving image file is generated every time a plurality of still images are photographed so that the number of recorded files increases largely. In such a case, it may be preferable to combine the moving image file generated at each still image photographing with the already-recorded moving image file to generate new one file. Further, it may be more convenient to manage the new file generated by combining the moving image files as a separate file on each date basis.

Second Embodiment

In the first embodiment, an example is described in which a directional difference is calculated from a difference between a shooting direction A of the time when the still image is photographed and a shooting direction B of the time traced back by a predetermined time period t from the time when the still image is photographed. In contrast to this, in the present embodiment, an example will be described in which a directional difference is calculated from a change amount per predetermined time period of a difference between a shooting direction A of the time traced back by a predetermined time period t1 from the time when the still image is photographed and a shooting direction B of the time traced back by a predetermined time period t2 from the time when the still image is photographed. Incidentally, the configuration of the digital still camera according to the present embodiment is similar to that in the first embodiment, and accordingly the description will be omitted.

FIG. 3 is a flow chart illustrating one example of a photographing procedure in the digital still camera 100, in the present embodiment. The processing illustrated in FIG. 3 is performed by the CPU 101 which executes the control program that is developed from the ROM 103 to the RAM 102. In addition, in the present embodiment, note that the same values as those in the first embodiment are used as values of the width of the step x, the threshold value T and the moving image recording time L. Furthermore, in the following description, note that the digital still camera operates in a mode of temporarily recording image data obtained by the solid-state image pickup element after the power source is turned on, and the shooting direction data obtained by the 3-axis geomagnetic sensor 108, in the RAM 102.

Firstly, in a step S301, the CPU 101 receives an instruction to photograph a still image from the input device 106, and starts the processing of photographing the still image. Then, in a step S302, the CPU 101 assigns 1 to a counter i. The counter i is similar to that described in the first embodiment.

Next, in a step S303, the CPU 101 obtains informatation on a shooting direction A of the time traced back by a time period t1 (first time period) given by multiplying the counter i by the width of the step x from the time when the still image is photographed, from the shooting direction data recorded in the RAM 102. Then, in a step S304, the CPU 101 obtains information on a shooting direction B of the time traced back by a time period t2 (second time period) given by multiplying a value obtained by adding 1 to the counter i by the width of the step x from the time when the still image is photographed, from the shooting direction data recorded in the RAM 102.

Next, in a step S305, a directional difference diff is calculated according to the above described expression (1), and a change amount diff' of the directional difference per unit time period is calculated by dividing the directional difference diff by a photographing time difference dt which is obtained by subtracting the time period t1 from the time period t2. In the present embodiment, the change amount diff' is used as the directional difference. Then, it is discriminated whether the directional difference (change amount diff') exceeds the threshold value T or not.

When the directional difference exceeds the threshold value T as a result of the discrimination in the step S305, the step advances to a step S308, and when the directional difference does not exceed the threshold value T as the result, the step advances to a step S306.

In the step S306, 1 is added to the counter i. Then, in a step S307, it is discriminated whether a time period t given by multiplying a value obtained by adding 1 to the counter i by the width of the step x is equal to or greater than a moving image recording time L. When the time period t is equal to or greater than the moving image recording time L as a result of this discrimination, the step advances to the step S308, and when the time period t is not equal to or greater than the moving image recording time L as the result, the step returns to the step S303.

In the step S308, the image data by the time traced back by the time period t from the time when the still image is photographed is recorded in the recording medium mounted on the media drive 107, as moving image data.

As described above, the digital still camera according to the present embodiment may record moving image data from which image data which a photographer does not desire is removed. In the present embodiment, a value obtained by dividing the directional difference used in the first embodiment by the photographing time difference is used as the directional difference. Because of this, in a photographing method such as a panning photographing method which gradually changes the direction of an image pickup apparatus, the image pickup apparatus can determine that the image data precedent to the still image photographing is image data which the photographer desires, and may record the image data.

Alternatively, when determining an inappropriate direction in the step S305, the image pickup apparatus may determine the direction by using a value of dispersion of the directional difference. In this case, the image pickup apparatus records the information on the directional difference in each count in the RAM 102, and performs the processing of updating the value of the dispersion of the directional difference every time the directional difference is determined. In addition, in a case where the updated value of the dispersion is used, if the value of the dispersion is small, the image pickup apparatus determines that the directional difference does not almost change, or the directional difference changes but this change is of uniform motion, and can determine in the step S305 that the shooting direction is an appropriate direction. Thereby, even when the photographer changes the shooting direction with movement close to a uniformat speed, the image pickup apparatus can record the image data precedent to the still image photographing in the recording medium.

Third Embodiment

In the first and second embodiments, such a method is described that an image pickup apparatus determines image data which the photographer does not desire. On the other hand, in the present embodiment, such a method will be described that the image pickup apparatus determines image data of which the shooting direction largely changes when the moving image data is reproduced. Incidentally, in the following description, such a point will be mainly described below that the image pickup apparatus discriminates whether image data recorded in a recording medium is image data which the photographer desires or not.

FIG. 4 is a block diagram illustrating a configuration example of a reproduction apparatus 400 according to the present embodiment. Incidentally, a CPU 401 to a ROM 403 are similar to the CPU 101 to the ROM 103 of FIG. 1, respectively. A reproduction unit 404 reads out moving image data from the recording medium mounted on a media drive 407. In addition, a display device 405 to the media drive 407 are similar to the display device 105 to the media drive 107 of FIG. 1, respectively, and a system bus 408 is similar to the system bus 109 of FIG. 1. Incidentally, note that the moving image data is recorded according to the predetermined moving image format and is related to a frame or a GOP (Group of Pictures), and that the information on the shooting direction is recorded in the recording medium.

FIG. 5 is a flow chart illustrating one example of a reproduction procedure in the reproduction apparatus 400 according to the present embodiment. The processing illustrated in FIG. 5 is performed by the CPU 401 which executes the control program that is developed from the ROM 403 to the RAM 402. In addition, in the present embodiment, note that the same values as those in the first embodiment are used as values of the width of the step x and the threshold value T.

Firstly, in a step S501, the CPU 401 receives an instruction to reproduce moving image data from the input device 406, and starts the processing of reproducing the moving image data output from the recording medium through the reproduction unit 404. Next, in a step S502, the CPU 401 calculates a non-reproduction area out of the reproduced moving image data. A detailed method of calculating the non-reproduction area will be described later with reference to FIG. 6. In a step S503, the reproduction apparatus reproduces the moving image data while skipping the image data included in the non-reproduction area.

FIG. 6 is a flow chart illustrating one example of a calculation procedure of the non-reproduction area in a step S502 of FIG. 5.

Firstly, in a step S601, the CPU 401 seeks a region in which information on a shooting direction is recorded, from the file structure of the moving image data. Next, in a step S602, the CPU 401 assigns 1 to a counter i. The counter i is a counter that is used for successively discriminating whether the image data recorded in the RAM 402 is image data which the photographer desires or not, from the head of the moving image data. In addition, the head of the moving image is a front frame or a front GOP of the moving image.

Next, in a step S603, the CPU 401 obtains information on a shooting direction A of the time when a time period t1 (first time period) given by multiplying the counter i by the width of the step x elapses from the head of the moving image. Then, in a step S604, similarly to the step S603, the CPU 401 obtains information on a shooting direction B of the time when a time period t2 (second time period) given by multiplying a value obtained by adding 1 to the counter i by the width of the step x elapses from the head of the moving image.

Next, in a step S605, the CPU 401 calculates a directional difference between the shooting direction A and the shooting direction B, and discriminates whether the above described directional difference exceeds a threshold value T or not. The directional difference is calculated in a similar method to that in the step S305 of FIG. 3 described in the second embodiment. For informatation, the method of obtaining the value of the dispersion of the directional difference described in the second embodiment, and the method of the step S205 of FIG. 2 described in the first embodiment may be used. When the above described directional difference exceeds the threshold value T as a result of the discrimination in the step S605, the step advances to a step S606, and when the above described directional difference does not exceed the threshold value T as the result, the step advances to a step S607.

In the step S606, the CPU 401 records information which gives an indication not to reproduce the image data precedent to the time period t1 given by multiplying the counter i by the width of the step x, in the RAM 402. In the step S607, 1 is added to the counter i.

In the next step S608, the CPU 401 discriminates whether the time period t given by multiplying a value obtained by adding 1 to the counter i by the width of the step x is equal to or greater than a moving image reproducing time L. When the time period t is equal to or greater than the moving image reproducing time L as a result of this discrimination, the step advances to the step S609, and when the time period t is not equal to or greater than the moving image reproducing time L as the result, the step returns to the step S603. In the step S609, a flag is turned on which gives an instruction to skip image data corresponding to a non-reproduction area among the moving image data on the basis of the informatation recorded in the step S606.

As described above, according to the present embodiment, the reproduction apparatus can reproduce the moving image data from which image data that the photographer does not desire is removed. Thereby, the camera does not need to perform the processing of removing a part of the moving image data when recording the moving image data precedent to the still image photographing, and can prevent image data which the photographer desires from being erroneously removed.

While in the above-described embodiment, the invention is explained as an example in a case of recording the moving image for several seconds before photographing, the invention is also applicable to a case such as a case of recording the moving image for several seconds after photographing or a case of recording the moving image for several seconds around a photographing instruction.

In the above described example, the camera detects the shooting direction of the camera with a 3-axis geomagnetic sensor, and records information on the shooting direction together with the moving image data.

Instead of this “shooting direction”, the camera may detect the attitude of the camera, and may record informatation concerning the attitude of the camera together with the moving image data.

This information concerning the attitude of the camera may be expressed as an optical axis direction of the lens, or may also be information which three-dimensionally expresses a difference of the change of the attitude of the camera with respect to a particular reference attitude of the camera.

In addition, the change amount per unit time period of the attitude of the camera may be used as in Exemplary Embodiment 2, in place of the information on the change amount of the shooting direction.

In addition, instead of the above described information concerning the shooting direction of the camera and the attitude of the camera, the camera may be configured to detect the shooting direction of the camera and the attitude of the camera, and to record relatedly to the moving image data, the flag information which indicates that there is a large change, in a case where there is a larger change than a predetermined criterion.

Other Embodiments

Aspects of the present invention can also be realized by a computer of a system or apparatus (or devices such as a CPU or MPU) that reads out and executes a program recorded on a memory device to perform the functions of the above-described embodiment(s), and by a method, the steps of which are performed by a computer of a system or apparatus by, for example, reading out and executing a program recorded on a memory device to perform the functions of the above-described embodiment(s). For this purpose, the program is provided to the computer for example via a network or from a recording medium of various types serving as the memory device (e.g., computer-readable medium).

While the present invention is described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.

This application claims the benefit of Japanese Patent Application No. 2011-286125, filed Dec. 27, 2011, which is hereby incorporated by reference herein in its entirety. 

What is claimed is:
 1. An image pickup apparatus comprising: an image pickup unit that picks up an object to generate moving image data; a detection unit that detects one of a shooting direction of the image pickup unit and an attitude of the image pickup apparatus; a storage unit that temporarily stores moving image data generated by the image pickup unit; an instruction unit that instructs to photograph a still image; and a recording unit that reads out the moving image data traced back by a predetermined time period from a timing when still image photographing is instructed by the instruction unit, from the storage unit, and records the read-out moving image data in a recording medium, wherein the recording unit deletes at least a part of the moving image data in the predetermined time period based on the one of the shooting direction and the attitude of the image pickup apparatus, which is detected by the detection unit, and records the resultant moving image data in the recording medium.
 2. The image pickup apparatus according to claim 1, further comprising: a first calculation unit that calculates a change amount of the one of the shooting direction and the attitude of the image pickup apparatus, which is detected by the detection unit, wherein the recording unit records moving image data in which data that is generated before a time point when a change amount calculated by the calculation unit exceeds a predetermined criterion is removed, in the recording medium.
 3. The image pickup apparatus according to claim 1, further comprising: a second calculation unit which calculates a change amount per unit time period of the one of the shooting direction and the attitude of the image pickup apparatus, which is detected by the detection unit, wherein the recording unit records moving image data in which data that is generated before a time point when a change amount per unit time period calculated by the second calculation unit exceeds a predetermined criterion is removed, in the recording medium.
 4. An image pickup apparatus comprising: an image pickup unit that picks up an object to generate moving image data; a detection unit that detects one of a shooting direction of the image pickup unit and an attitude of the image pickup apparatus; a storage unit that temporarily stores moving image data generated by the image pickup unit; an instruction unit that instructs to photograph a still image; and a recording unit that reads out the moving image data traced back by a predetermined time period from a time point when still image photographing is instructed by the instruction unit, from the storage unit, and records the read-out moving image data in a recording medium, wherein the recording unit records, relatedly with the moving image data, information concerning the detected one of the shooting direction and the attitude of the image pickup apparatus.
 5. The image pickup apparatus according to claim 4, further comprising: a first calculation unit that calculates a change amount of the detected one of the shooting direction and the attitude of the image pickup apparatus, wherein the recording unit records, relatedly with the moving image data, information on the change amount calculated by the first calculation unit in the recording medium.
 6. The image pickup apparatus according to claim 4, further comprising: a second calculation unit which calculates one of a change amount per unit time period of the detected one of the shooting direction and the attitude of the image pickup apparatus, wherein the recording unit records, relatedly with the moving image data, information on the change amount per unit time period calculated by the second calculation unit in the recording medium.
 7. The image pickup apparatus according to claim 4, wherein the recording unit records, relatedly with the moving image data, information which indicates that there is a larger change than a predetermined criterion, in the one of the shooting direction and the attitude of the image pickup apparatus on the basis of a detected result in the detection unit in the recording medium.
 8. A reproduction apparatus comprising: an obtaining unit that obtains information concerning one of a shooting direction and an attitude of an image pickup apparatus, from a recording medium in which the information concerning one of the shooting direction and the attitude of the image pickup apparatus obtained when moving image data is photographed are recorded relatedly with the moving image data; and a reproduction unit that removes at least a part of the moving image data that is recorded in the recording medium, based on a result of having analyzed information obtained by the obtaining unit, and reproduces the resultant moving image data, when reproducing the moving image data.
 9. The reproduction apparatus according to claim 8, wherein the reproduction unit removes at least a part of the moving image data that is recorded in the recording medium, based on a result of calculation of a change amount of one of the shooting direction and the attitude of the image pickup apparatus, and reproduces the resultant moving image data.
 10. The reproduction apparatus according to claim 8, wherein the reproduction unit removes at least a part of the moving image data that is recorded in the recording medium, based on a result of calculation of the change amount per unit time period of the shooting direction and the attitude of the image pickup apparatus, and reproduces the resultant moving image data.
 11. The reproduction apparatus according to claim 8, wherein the reproduction unit controls not to reproduce moving image data generated before a time point when a change of one of the shooting direction and the attitude of the image pickup apparatus is larger than a predetermined criterion.
 12. A method for controlling an image pickup apparatus having an image pickup unit which picks up an object to generate moving image data, and a storage unit which temporarily stores the moving image data generated by the image pickup unit, comprising: detecting one of a shooting direction of the image pickup unit and an attitude of the image pickup apparatus; instructing to photograph a still image from an instruction unit; and reading out the moving image data traced back by a predetermined time period from a time point when still image photographing is instructed in the instructing, from the storage unit, and recording the read-out moving image data in a recording medium, wherein the recording includes deleting at least a part of the moving image data in the predetermined time period based on the one of the shooting direction and the attitude of the image pickup apparatus, which is detected in the detecting, and records the resultant moving image data in the recording medium.
 13. A non-transitory computer-readable storage medium storing program code causing a computer to control an image pickup apparatus including an image pickup unit which picks up an object to generate moving image data, comprising: first program code means for detecting one of a shooting direction of the image pickup unit and an attitude of the image pickup apparatus; second program code means for temporarily storing the moving image data generated by the image pickup unit, in a storage unit; third program code means for instructing to photograph a still image from an instruction unit; and fourth program code means for reading out the moving image data traced back by a predetermined time period from a time point when still image photographing is instructed by the instruction unit, from the storage unit, and recording the read-out moving image data in a recording medium wherein the fourth program code means includes fifth program code means for deleting at least a part of the moving image data in the predetermined time period based on the detected one of the shooting direction and the attitude of the image pickup apparatus, and recording the resultant moving image data in the recording medium.
 14. A method for controlling an image pickup apparatus which has an image pickup unit that picks up an object to generate moving image data, and a storage unit that temporarily stores the moving image data generated by the image pickup unit, comprising: detecting one of a shooting direction of the image pickup unit and an attitude of the image pickup apparatus; instructing to photograph a still image from an instruction unit; and reading out the moving image data traced back by a predetermined time period from a time point when still image photographing is instructed in the instructing, from the storage unit, and recording the read-out moving image data in a recording medium, wherein the recording includes recording, relatedly with the moving image data, information concerning one of the shooting direction and information concerning the attitude of the image pickup apparatus, which is detected in the detecting.
 15. A non-transitory computer-readable storage medium storing program code causing a computer to control an image pickup apparatus including an image pickup unit which picks up an object to generate moving image data, comprising: first program code means for detecting one of a shooting direction of the image pickup unit and an attitude of the image pickup apparatus; second program code means for temporarily storing the moving image data generated by the image pickup unit, in a storage unit; third program code means for instructing to photograph a still image from an instruction unit; and fourth program code means for reading out the moving image data traced back by a predetermined time period from a time point when still image photographing is instructed by the instruction unit, from the storage unit, and recording the read-out moving image data in a recording medium, wherein the fourth program code means includes fifth program code means for recording, relatedly with the moving image data, one of information concerning the detected one of the detected shooting direction and information concerning the attitude of the image pickup apparatus. 